home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _4ADF13D8B7D74ACC9CCC96181281AB58 < prev    next >
Encoding:
Text File  |  2004-01-06  |  5.2 KB  |  244 lines

  1. ABBERATION_GRAV_MULT = 3;
  2. MutantMonkey_x = {
  3.  
  4.     NoFallDamage = 1,
  5. ------------------------------------------------------------------------------------
  6.  
  7.         
  8.     MeleeHitType="melee_slash",
  9. ------------------------------------------------------------------------------------
  10.  
  11.     MUTANT = 1,
  12.     isSelfCovered = 0,
  13.     lastMeleeAttackTime = 0,
  14.  
  15.     PropertiesInstance = {
  16.         sightrange = 35,
  17.         soundrange = 10,    -- rememeber that sound ranges intersect and sound range for AI doubles when in alert
  18.         groupid = 154,
  19.         aibehavior_behaviour = "Job_Observe",
  20.         },
  21.  
  22.     Properties = {
  23.         fJumpAngle = 20,
  24.         gravity_multiplier = ABBERATION_GRAV_MULT,
  25.         bSingleMeleeKillAI = 0,
  26.         fDamageMultiplier = 1,
  27.         JUMP_TABLE = "BIG_ABBERATION",
  28.         KEYFRAME_TABLE = "MUTANT_MONKEY",
  29.         SOUND_TABLE = "MUTANT_MONKEY",
  30.         fMeleeDamage = 100,
  31.         fMeleeDistance = 3,
  32.         suppressedThrhld = 5.5,
  33.         bAffectSOM = 1,
  34.         bSleepOnSpawn = 1,
  35.         bHelmetOnStart = 0,
  36.         bHasArmor = 1,
  37.         fileHelmetModel = "Objects/merc_m_heavy.cgf",
  38. --        bHasLight = 0,
  39.         aggression = 0.2,    -- 0 = passive, 1 = total aggression
  40.         commrange = 30.0,
  41. --        cohesion = 5,
  42.         attackrange = 70,
  43.         horizontal_fov = 160,
  44.         eye_height = 1.1,
  45.         forward_speed = 1.54,
  46.         back_speed = 2.5,
  47.         max_health = 250,    
  48.         accuracy = 0.6,
  49.         responsiveness = 7,
  50.         species = 100,
  51.         fSpeciesHostility = 2,
  52.         fGroupHostility = 0,
  53.         fPersistence = 0,
  54.         equipEquipment = "none",
  55.         equipDropPack = "none",
  56.         AnimPack = "Basic",
  57.         SoundPack = "mutant_ab2",
  58.         aicharacter_character = "Abberation",
  59.         pathname = "none",
  60.         pathsteps = 0,
  61.         pathstart = 0,
  62.         ReinforcePoint = "none",
  63.         --Objects\characters\Mutants\mutant_aberration2\Mutant_Aberration2.cgf
  64.         fileModel = "Objects/characters/Mutants/mutant_aberration2/Mutant_Aberration2.cgf",                
  65.         bTrackable=1,
  66.         ImpulseParameters = {
  67.             rmin = 1,
  68.             rmax = 1,
  69.             impulsive_pressure = 200,
  70.             rmin_occlusion =0,
  71.             occlusion_res =0,
  72.             occlusion_inflate = 0,
  73.         },
  74.  
  75.         speed_scales={
  76.             run            =2.48,
  77.             crouch    =.8,
  78.             prone        =.5,
  79.             xrun        =1.5,
  80.             xwalk        =.81,
  81.             rrun        =3.63,
  82.             rwalk        =.94,
  83.             },
  84.         AniRefSpeeds = {
  85.             RunFwd = 5.39,
  86.             RunBack = 5.39,
  87.             RunSide = 5.39,
  88.             WalkFwd = 0.66,
  89.             WalkBack = 0.66,
  90.             WalkSide = 0.66,
  91.             WalkRelaxedFwd = 0.66,
  92.             WalkRelaxedSide = 0.66,
  93.             WalkRelaxedBack = 0.66,
  94.             XWalkFwd = 0.66,
  95.             XWalkSide = 0.66, 
  96.             XWalkBack = 0.66,
  97.             XRunFwd = 4.5,
  98.             XRunSide = 3.5, 
  99.             XRunBack = 4.5,
  100.             CrouchFwd = 0.66,
  101.             CrouchSide = 0.66,
  102.             CrouchBack = 0.66,    
  103.         },
  104.     },
  105.     
  106.     PhysParams = {
  107.         mass = 80,
  108.         height = 2.8,
  109.         eyeheight = 2.7,
  110.         sphereheight = 1.2,
  111.         radius = 0.45,
  112.     },
  113.  
  114.  
  115. --pe_player_dimensions structure
  116.     PlayerDimNormal = {
  117.         height = 1,
  118.         eye_height = .9,
  119.         ellipsoid_height = .875,
  120. --        x = 0.5,
  121.         x = 0.45,
  122.         y = 0.10,
  123.         z = 0.35,
  124.     },
  125.     PlayerDimCrouch = {
  126.         height = 1,
  127.         eye_height = .9,
  128.         ellipsoid_height = .9,
  129. --        x = .5,
  130.         x = .45,    
  131.         y = 0.10,
  132.         z = 0.7,
  133.     },
  134.     PlayerDimProne = {
  135.         height = 0.4,
  136.         eye_height = 0.5,
  137.         ellipsoid_height = 0.35,
  138.         x = 0.45,
  139.         y = 0.45,
  140.         z = 4.2,
  141.     },
  142.     
  143.  
  144.  
  145.     DeadBodyParams = {
  146.       max_time_step = 0.025,
  147.       gravityz = -7.5,
  148.       sleep_speed = 0.025,
  149.       damping = 0.3,
  150.       freefall_gravityz = -9.81,
  151.       freefall_damping = 0.1,
  152.  
  153.       lying_mode_ncolls = 4,
  154.       lying_gravityz = -5.0,
  155.       lying_sleep_speed = 0.065,
  156.       lying_damping = 1.0,
  157.     },
  158.     BulletImpactParams = {
  159.     stiffness_scale = 73,
  160.     max_time_step = 0.02
  161.   },
  162.  
  163.     Ammo = {
  164.         Pistol = 0,
  165.         Assault = 0,
  166.         Sniper = 0,
  167.         Minigun = 0,
  168.         Shotgun = 0,
  169.         MortarShells = 0,
  170.         Grenades = 0,
  171.         HandGrenades = 0,
  172.         Rocket = 0,
  173.         Battery = 0,
  174.     },
  175.  
  176. --    SoundEvents={
  177. --        {"srunfwd",    0,            666},
  178. --        {"srunfwd",    10,            666},
  179. --        {"srunfwd",    20,            666},
  180. --        {"srunback",    5,            666},
  181. --        {"srunback",    13,            666},
  182. --        {"swalkback",   2,            666},
  183. --        {"swalkback",   18,        666},
  184. --        {"swalkfwd",     3,        666},
  185. --        {"swalkfwd",    20,        666},
  186. --        {"attack_melee1", 8, KEYFRAME_APPLY_MELEE},
  187. --        {"attack_melee2", 8, KEYFRAME_APPLY_MELEE},
  188. --        {"attack_melee3", 8, KEYFRAME_APPLY_MELEE},
  189. --    },
  190.  
  191.     GrenadeType = "ProjFlashbangGrenade",
  192.  
  193.  
  194.  
  195.     AI_DynProp = {
  196.         air_control = 0.4,  -- default 0.6
  197.         gravity = ABBERATION_GRAV_MULT*9.81,
  198.         swimming_gravity = -1.0,
  199.         inertia = 10.0,
  200.         swimming_inertia = 1.0,
  201.         nod_speed = 60.0,
  202.         min_slide_angle = 46,
  203.         max_climb_angle = 60,
  204.         min_fall_angle = 70,
  205.         max_jump_angle = 55,
  206.     },
  207.  
  208.  
  209.     ImpulseParameters = {
  210.         rmin = 1,
  211.         rmax = 1,
  212.         impulsive_pressure = 200,
  213.         rmin_occlusion =0,
  214.         occlusion_res =0,
  215.         occlusion_inflate = 0,
  216.     },
  217.  
  218.  
  219.  
  220. }
  221.  
  222. -------------------------------------------------------------------------------------------------------
  223. function MutantMonkey_x:OnInitCustom(  )
  224.  
  225.  
  226. System:Log("MutantMonkey_x onInitCustom ");
  227.  
  228.     self.cnt:CounterAdd("SuppressedValue", -2.0 );
  229.  
  230. end
  231.  
  232. ---------------------------------------------------------------------------------------------------------
  233. function MutantMonkey_x:OnResetCustom()
  234.  
  235. System:Log("MutantMonkey_x onResetCustom ");
  236.  
  237.     self.cnt:CounterSetValue("SuppressedValue", 0.0 );
  238.     self.isSelfCovered = 0;
  239.     self.lastMeleeAttackTime = 0;
  240.     
  241. end
  242. ---------------------------------------------------------------------------------------------------------
  243.  
  244.